package com.ynkbny.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ynkbny.domain.PlanData;
import com.ynkbny.domain.dto.PlanDataDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 准备数据-数据库访问层
 *
 * @author : juzipi123
 * @date : 2023-7-31
 */
@Mapper
public interface PlanDataMapper extends BaseMapper<PlanData> {
    PlanDataDTO selectRepeat(@Param("enterpriseCode")String enterpriseCode, @Param("deviceId")String deviceId, @Param("start")String start, @Param("end")String end);

    Boolean updateById2(PlanDataDTO dto);

    PlanDataDTO selectExist(@Param("enterpriseCode")String enterpriseCode, @Param("deviceId")String deviceId, @Param("dateTime")String dateTime);

}